home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / KSLIB11.ARJ / MN.H < prev    next >
Text File  |  1991-10-16  |  537b  |  33 lines

  1. /*
  2. *  MN.H
  3. */
  4.  
  5. #define CENTRE        0x0001
  6. #define RIGHT        0x0002
  7. #define    AUTOEXIT    0x0004
  8. #define MAYBEXIT    0x0008
  9.  
  10. #define MAXOPT 20
  11.  
  12. typedef struct MNitem MNitem;
  13. typedef struct MNdata MNdata;
  14.  
  15. struct MNitem {
  16.     char    *desc;
  17.     struct    MNdata    *menu;
  18.     void    (*func)();
  19. };
  20.  
  21. struct MNdata {
  22.     uint    row,col;
  23.     uint    wid,hei;
  24.     uint    attr;
  25.     char    *header;
  26.     MNitem    option[MAXOPT];
  27. };
  28.  
  29. uchar    MNmenu(MNdata *);
  30. uchar    MNselect(uint,uint,int,int,int *,void (*func)(uint,uint));
  31. void    MNcolor(uint,uint);
  32. void    MNshowitem(uint,uint);
  33.